/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.terminalrodoviario;

import java.util.ArrayList;

/**
 *
 * @author jorge
 */
public class Route extends BaseEntity<Route> {

    // <editor-fold defaultstate="collapsed" desc="Builders">
    public Route()
    {
    }
    public Route(String prefix,RouteType routeType, City from, City to, Company company)
    {
        this.prefix=prefix;
        this.routeType = routeType;
        this.from=from;
        this.to=to;
        this.company=company;
    }
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Properties">
    private String prefix;
    private RouteType routeType;
    private City from;
    private City to;
    private Company company;
    private ArrayList<RouteTravel> travels;
    private ArrayList<RouteItinerary> itinerary;
    private int type; //utilizado somente para busca
    //</editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="Gets and Sets">
    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }    

    public City getFrom() {
        return from;
    }

    public void setFrom(City from) {
        this.from = from;
    }

    public City getTo() {
        return to;
    }

    public void setTo(City to) {
        this.to = to;
    }

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public RouteType getRouteType() {
        return routeType;
    }

    public void setRouteType(RouteType routeType) {
        this.routeType = routeType;
    }

    public ArrayList<RouteTravel> getTravels() {
        return travels;
    }

    public void setTravels(ArrayList<RouteTravel> travels) {
        this.travels = travels;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public ArrayList<RouteItinerary> getItinerary() {
        return itinerary;
    }

    public void setItinerary(ArrayList<RouteItinerary> itinerary) {
        this.itinerary = itinerary;
    }
    

    //</editor-fold>
}
